package com.atldy.commerce.service;

import com.atldy.commerce.commence.TableId;
import com.atldy.commerce.order.OrderInfo;
import com.atldy.commerce.pojo.Order;
import com.atldy.commerce.pojo.PageSimpleOrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <h2> 用户订单表 </h2>
 *
 * @author: li-dong-yang
 * @CreateTime: 2021/11/1 11:11
 */
public interface OrderService extends IService<Order> {

    /**
     * <p>下单 创建订单-库检库存-扣减余额-创建物流信息</p>
     */
    TableId createOrder(OrderInfo orderInfo);

    /**
     * <p>查询订单</p>
     */
    PageSimpleOrderInfo getSimpleOrderInfo(int page);


}
